package com.qiyeji.real_estate.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;

@HeadRowHeight(50)// 设置表头高度
@ColumnWidth(40)
public class staff {
    @ExcelProperty(value = {"员工编号"}, index = 0)
    private String scode;

    @ExcelProperty(value = {"部门编号"}, index = 2)
    private String dcode;


    @ExcelProperty(value = {"部门名称"}, index = 3)
    private String dname;

    @ExcelProperty(value = {"员工姓名"}, index = 1)
    private String sname;

    @ExcelProperty(value = {"职位"}, index = 4)
    private String job;

    @ExcelProperty(value = {"联系方式"}, index = 5)
    private String tel;

    @ExcelProperty(value = {"状态"}, index = 6)
    private String sstate;

    public staff(String scode, String dcode, String sname, String job, String tel, String sstate) {
        this.scode = scode;
        this.dcode = dcode;
        this.sname = sname;
        this.job = job;
        this.tel = tel;
        this.sstate = sstate;
    }

    public staff(String scode, String dcode, String dname, String sname, String job, String tel, String sstate) {
        this.scode = scode;
        this.dcode = dcode;
        this.dname = dname;
        this.sname = sname;
        this.job = job;
        this.tel = tel;
        this.sstate = sstate;
    }

    public staff() {
    }

    public String getScode() {
        return scode;
    }

    public void setScode(String scode) {
        this.scode = scode == null ? null : scode.trim();
    }

    public String getDcode() {
        return dcode;
    }

    public void setDcode(String dcode) {
        this.dcode = dcode == null ? null : dcode.trim();
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname == null ? null : sname.trim();
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job == null ? null : job.trim();
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel == null ? null : tel.trim();
    }

    public String getSstate() {
        return sstate;
    }

    public void setSstate(String sstate) {
        this.sstate = sstate == null ? null : sstate.trim();
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public String getDname() {
        return dname;
    }

    @Override
    public String toString() {
        return "staff{" +
                "scode='" + scode + '\'' +
                ", dcode='" + dcode + '\'' +
                ", sname='" + sname + '\'' +
                ", job='" + job + '\'' +
                ", tel='" + tel + '\'' +
                ", sstate='" + sstate + '\'' +
                '}';
    }
}